f = open('writeme.txt','w')
txt = '写入文件'
print(f.write(txt))